[PATCH 26/30] ext4: do not send discards as barriers

From: Christoph Hellwig <hch [at] infradead.org>

ext4 already uses synchronous discards, no need to add I/O barriers.

Signed-off-by: Christoph Hellwig <hch [at] lst.de>
Signed-off-by: Tejun Heo <tj [at] kernel.org>
---
fs/ext4/mballoc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index df44b34..a22bfef 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
[at] [at] -2567,7 +2567,7 [at] [at] static inline void ext4_issue_discard(struct super_block *sb,
trace_ext4_discard_blocks(sb,
(unsigned long long) discard_block, count);
ret = sb_issue_discard(sb, discard_block, count, GFP_NOFS,
- BLKDEV_IFL_WAIT | BLKDEV_IFL_BARRIER);
+ BLKDEV_IFL_WAIT);
if (ret == EOPNOTSUPP) {
ext4_warning(sb, "discard not supported, disabling");
clear_opt(EXT4_SB(sb)->s_mount_opt, DISCARD);
--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Tejun Heo [ Mi, 25 August 2010 17:47 ] [ ID #2046612 ]
Linux » gmane.linux.raid » [PATCH 26/30] ext4: do not send discards as barriers

Vorheriges Thema: [PATCH 28/30] swap: do not send discards as barriers
Nächstes Thema: [PATCH 25/30] jbd2: replace barriers with explicit flush / FUA usage